/*******************************************************************************
 * This software is provided as a supplement to the authors' textbooks on digital
 * image processing published by Springer-Verlag in various languages and editions.
 * Permission to use and distribute this software is granted under the BSD 2-Clause
 * "Simplified" License (see http://opensource.org/licenses/BSD-2-Clause).
 * Copyright (c) 2006-2023 Wilhelm Burger, Mark J. Burge. All rights reserved.
 * Visit https://imagingbook.com for additional details.
 ******************************************************************************/
package imagingbook.common.color.cie;

public interface Illuminant {

	/**
	 * Returns the illuminant's 3D coordinate in CIE-XYZ color space.
	 *
	 * @return the XYZ-coordinate
	 */
	public double[] getXYZ();

	/**
	 * Returns the  illuminant's 2D coordinate in 2D CIE-xy space.
	 *
	 * @return the xy-coordinate
	 */
	public default double[] getXy() {
		return CieUtils.XYZToxy(getXYZ());
	}

}
